package com.huawo.opensdk.bean;

import java.util.List;

public class VersionBean {

    private Integer code;
    private String msg="";
    private DeviceUpgradeInfo data;
    private Boolean ok;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Object getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DeviceUpgradeInfo getData() {
        return data;
    }

    public void setData(DeviceUpgradeInfo data) {
        this.data = data;
    }

    public Boolean isOk() {
        return ok;
    }

    public void setOk(Boolean ok) {
        this.ok = ok;
    }

    public static class DataDTO {
        private String version;
        private Integer build;
        private Boolean forceUpdate;
        private String updateContentKey;
        private String updateContent;
        private ResourceDTO resource;
        private List<FirmwaresDTO> firmwares;

        public String getVersion() {
            return version;
        }

        public void setVersion(String version) {
            this.version = version;
        }

        public Integer getBuild() {
            return build;
        }

        public void setBuild(Integer build) {
            this.build = build;
        }

        public Boolean isForceUpdate() {
            return forceUpdate;
        }

        public void setForceUpdate(Boolean forceUpdate) {
            this.forceUpdate = forceUpdate;
        }

        public String getUpdateContentKey() {
            return updateContentKey;
        }

        public void setUpdateContentKey(String updateContentKey) {
            this.updateContentKey = updateContentKey;
        }

        public String getUpdateContent() {
            return updateContent;
        }

        public void setUpdateContent(String updateContent) {
            this.updateContent = updateContent;
        }

        public ResourceDTO getResource() {
            return resource;
        }

        public void setResource(ResourceDTO resource) {
            this.resource = resource;
        }

        public List<FirmwaresDTO> getFirmwares() {
            return firmwares;
        }

        public void setFirmwares(List<FirmwaresDTO> firmwares) {
            this.firmwares = firmwares;
        }

        public static class ResourceDTO {
            private Object id;
            private Object companyId;
            private Object creator;
            private Object updator;
            private Long createTime;
            private Long updateTime;
            private String name;
            private String fromVersion;
            private String toVersion;
            private String url;
            private String md5;
            private String productId;

            public Object getId() {
                return id;
            }

            public void setId(Object id) {
                this.id = id;
            }

            public Object getCompanyId() {
                return companyId;
            }

            public void setCompanyId(Object companyId) {
                this.companyId = companyId;
            }

            public Object getCreator() {
                return creator;
            }

            public void setCreator(Object creator) {
                this.creator = creator;
            }

            public Object getUpdator() {
                return updator;
            }

            public void setUpdator(Object updator) {
                this.updator = updator;
            }

            public Long getCreateTime() {
                return createTime;
            }

            public void setCreateTime(Long createTime) {
                this.createTime = createTime;
            }

            public Long getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(Long updateTime) {
                this.updateTime = updateTime;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getFromVersion() {
                return fromVersion;
            }

            public void setFromVersion(String fromVersion) {
                this.fromVersion = fromVersion;
            }

            public String getToVersion() {
                return toVersion;
            }

            public void setToVersion(String toVersion) {
                this.toVersion = toVersion;
            }

            public String getUrl() {
                return url;
            }

            public void setUrl(String url) {
                this.url = url;
            }

            public String getMd5() {
                return md5;
            }

            public void setMd5(String md5) {
                this.md5 = md5;
            }

            public String getProductId() {
                return productId;
            }

            public void setProductId(String productId) {
                this.productId = productId;
            }
        }

        public static class FirmwaresDTO {
            private Object id;
            private Object companyId;
            private Object creator;
            private Object updator;
            private Long createTime;
            private Long updateTime;
            private String name;
            private String version;
            private String url;
            private Integer type;
            private Object typeName;
            private String md5;
            private Integer byteSize;

            public Object getId() {
                return id;
            }

            public void setId(Object id) {
                this.id = id;
            }

            public Object getCompanyId() {
                return companyId;
            }

            public void setCompanyId(Object companyId) {
                this.companyId = companyId;
            }

            public Object getCreator() {
                return creator;
            }

            public void setCreator(Object creator) {
                this.creator = creator;
            }

            public Object getUpdator() {
                return updator;
            }

            public void setUpdator(Object updator) {
                this.updator = updator;
            }

            public Long getCreateTime() {
                return createTime;
            }

            public void setCreateTime(Long createTime) {
                this.createTime = createTime;
            }

            public Long getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(Long updateTime) {
                this.updateTime = updateTime;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getVersion() {
                return version;
            }

            public void setVersion(String version) {
                this.version = version;
            }

            public String getUrl() {
                return url;
            }

            public void setUrl(String url) {
                this.url = url;
            }

            public Integer getType() {
                return type;
            }

            public void setType(Integer type) {
                this.type = type;
            }

            public Object getTypeName() {
                return typeName;
            }

            public void setTypeName(Object typeName) {
                this.typeName = typeName;
            }

            public String getMd5() {
                return md5;
            }

            public void setMd5(String md5) {
                this.md5 = md5;
            }

            public Integer getByteSize() {
                return byteSize;
            }

            public void setByteSize(Integer byteSize) {
                this.byteSize = byteSize;
            }
        }
    }
}
